﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using Xyz.BusinessObjects.Validation;

namespace Xyz.BusinessObjects
{
    public class Ticket : BusinessObject
	{
        public Ticket()
        {
            AddRule(new ValidateMandatory("FlightSeat"));
            AddRule(new ValidateMandatory("FlightId"));
            AddRule(new ValidateMandatory("Flight"));
            AddRule(new ValidateMandatory("Passenger"));
      
        }
        public int TicketId { get; set; }
        public FlightSeat FlightSeat { get; set; }
        public int BookingId { get; set; }
        public int FlightId { get; set; }
        public Flight Flight { get; set; }
        public Passenger Passenger { get; set; }
        public decimal TicketFare { get; set; }
        public List<PassengerService> Services { get; set; }
	}
}
